﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.DedupRules.NetworkDedupEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Height="Auto" Width="Auto" Loaded="UserControl_Loaded">
    <Border CornerRadius="10">
        <Grid Margin="5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="75"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="55"/>
            </Grid.RowDefinitions>
            
            <Label Grid.Row="0" Grid.Column="0" Margin="5,0,0,0" VerticalAlignment="Center">
                Network:
            </Label>
            <TextBlock x:Name="txtNetworkName" Grid.Row="0" Grid.Column="1" Margin="5,0,5,0" VerticalAlignment="Center">
                Network name
            </TextBlock>
            
            <WindowsFormsHost Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" MinWidth="300" MinHeight="200">
                <Forms:DataGridView x:Name="dvDedupRules" Dock="Fill">
                    <Forms:DataGridView.Columns>
                        <Forms:DataGridViewTextBoxColumn HeaderText="Entity" Width="80"/>
                        <Forms:DataGridViewComboBoxColumn HeaderText="Dedup rule" Width="175"/>
                    </Forms:DataGridView.Columns>
                </Forms:DataGridView>
            </WindowsFormsHost>
            
            <StackPanel 
                Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal"
                VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
                <Button x:Name="btnCancel" Content="Cancel" Width="55" Margin="5,0,5,0" VerticalAlignment="Center" Click="btnCancel_Click" />
                <Button x:Name="btnOK" Content="OK" Width="55" Margin="5,0,5,0" VerticalAlignment="Center" Click="btnOK_Click" />
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
